package com.wsj.message_server.service.impl;

import com.wsj.message_server.service.PushAppService;
import com.wsj.message_server.utils.PushAppUtil;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class PushAppServiceImpl implements PushAppService {

    @Autowired
    private PushAppUtil appUtil;

    @Override
    public String androidApp(String title, String content,String token,String type) {
       return appUtil.androidApp(title,content,token,type);
    }

    @Override
    public String iosApp(String title, String content, String token, String type) {
        return appUtil.iosApp(title,content,token,type);
    }

    @Override
    public String androidAppList(String title, String content, List<String> token, String type,long materialId,int typeId,long poster) {
        return appUtil.androidAppList(title,content,token,type,materialId,typeId,poster);

    }

    @Override
    public String iosAppList(String title, String content, List<String> token, String type,long materialId,int typeId,long poster) {
        return appUtil.iosAppList(title,content,token,type,materialId,typeId,poster);
    }
}
